# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=buildcache
pkgver=0.27.6
pkgrel=0
pkgdesc="Advanced compiler accelerator"
url="https://github.com/mbitsnbites/buildcache"
arch="all !s390x !armhf" # failing tests
license="Zlib"
makedepends="
	openssl-dev
	cmake
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/mbitsnbites/buildcache/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cmake \
	-B build \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	"src"
	cmake --build build
}

check() {
	cmake --build build --target test
}

package() {
	DESTDIR="$pkgdir" cmake --install build
	rm -rf "$pkgdir/usr/share/lua-examples/"
}

sha512sums="
7160bef0da93fe2a335b3597ba4adbc58508a6488b703012c80561ffd478f384f4deb32ab676047aa2eb0cd444f0bc785830e850f0b6cf7037f3a3b82608967e  buildcache-0.27.6.tar.gz
"
